﻿@model Contrib.AppFabric.ViewModels.IndexViewModel
           
@{
    Layout.Title = T("AppFabric Settings");

}

@using (Html.BeginFormAntiForgeryPost())
{
    @Html.ValidationSummary()

   <fieldset>
        <label>@T("Cache Name")</label>
        @Html.TextBoxFor(m => m.CacheName, new { @class = "text" })
        <span class="hint">@T("If your cache name is Default, it will always become lowercase in appfabric. All others remain the same case.")</span>
    </fieldset>
    
    <fieldset>
        <label>@T("Maximum number of failed attempts until retry circle")</label>
        @Html.TextBoxFor(m => m.MaxiumumNumberOfErrorsUntilRetryCircle, new { @class = "text-small" })
        <span class="hint">@T("Number of failed attempts before AppFabric caching is suspended.")</span>
    </fieldset>
    
    <fieldset>
        <label>@T("Seconds to wait in retry circle")</label>
        @Html.TextBoxFor(m => m.SecondsToWaitInRetryCircle, new { @class = "text-small" })
        <span class="hint">@T("Number of second the Appfabric cache server will stay suspended for.")</span>
    </fieldset>
    
    <button class="primaryAction" type="submit">@T("Save")</button>
}
